package SQL.Spring.SpringJDBC.Entity;

/**
 * Created by kz on 2017/5/14.
 *
 * 客户数据对象
 */
public class Customer {
    int custId;
    String name;
    int age;

    public String asString(){
        return ("Customer:"+name +",  " + custId + ", "+ age);
    }

    public Customer() {
        custId = 10;
        name = "test";
        age = 35;
    }
    public Customer(int cust_id, String _name, int _age) {
        custId = cust_id;
        name = _name;
        age = _age;
    }

    public int getCustId() {
        return custId;
    }

    public void setCustId(int custId) {
        this.custId = custId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    //getter and setter methods
}
